#include "worker.h"


worker::worker()
{
	free = true;
}

worker::~worker()
{
}

bool worker::isFree()
{
	return free;
}

void worker::update()
{
	serviceTime -= 1;
	if (serviceTime == 0)
	{
		free = true;
	}
}

void worker::setServiceTime(int servTime)
{
	serviceTime = servTime;
	free = false;
}